<!-- components/MyDialog.vue -->
<template>
  <el-dialog :visible="visible" @close="closeDialog">
    <div>
      <el-row>
        <el-col :span="8">资源编码 <el-input></el-input></el-col>
        <el-col :span="8"> 人员：<el-select></el-select></el-col>
        <el-col :span="8">时间<el-date-picker></el-date-picker></el-col>
      </el-row>
    </div>

  </el-dialog>
</template>

<script>
export default {
  props: {
    visible: {
      type: Boolean,
      default: false
    },
    title: {
      type: String,
      default: '标题'
    },
    message: {
      type: String,
      default: '这是消息内容'
    },
    dataArray: {
      type: Array,
      default: () => {
        return []
      }
    }
  },
  data() {
    return {
    }
  },
  methods: {
    closeDialog() {
      this.visible = false
      this.$emit('close')
    }
  }
}
</script>

<style scoped>
.dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
}
.dialog-content {
  background-color: white;
  padding: 20px;
  border-radius: 5px;
}
</style>
